package com.zabra.zl.data;

import com.contrarywind.interfaces.IPickerViewData;

import java.util.List;

/**
 * Create by zhenglei on 2019/06/18
 */
public class MyCityBean implements IPickerViewData {



    private String key;
    private PayloadBean payload;
    private String title;
    private List<ChildrenBean> children;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public PayloadBean getPayload() {
        return payload;
    }

    public void setPayload(PayloadBean payload) {
        this.payload = payload;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    @Override
    public String getPickerViewText() {
        return this.title;
    }

    public static class PayloadBean {

        private String code;
        private String dictId;
        private String dictTypeId;
        private String name;
        private String parentId;
        private List<ChildrenBean> children;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getDictId() {
            return dictId;
        }

        public void setDictId(String dictId) {
            this.dictId = dictId;
        }

        public String getDictTypeId() {
            return dictTypeId;
        }

        public void setDictTypeId(String dictTypeId) {
            this.dictTypeId = dictTypeId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }


    }

    public static class ChildrenBean {

        private String key;
        private PayloadBeanX payload;
        private String title;
        private List<ChildrenBean> children;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public PayloadBeanX getPayload() {
            return payload;
        }

        public void setPayload(PayloadBeanX payload) {
            this.payload = payload;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<ChildrenBean> getChildren() {
            return children;
        }

        public void setChildren(List<ChildrenBean> children) {
            this.children = children;
        }

        public static class PayloadBeanX {
            /**
             * children : []
             * code : 110101
             * dictId : 17
             * dictTypeId : 8
             * name : 东城区
             * parentId : 16
             */

            private String code;
            private String dictId;
            private String dictTypeId;
            private String name;
            private String parentId;
            private List<ChildrenBean> children;

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getDictId() {
                return dictId;
            }

            public void setDictId(String dictId) {
                this.dictId = dictId;
            }

            public String getDictTypeId() {
                return dictTypeId;
            }

            public void setDictTypeId(String dictTypeId) {
                this.dictTypeId = dictTypeId;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getParentId() {
                return parentId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public List<ChildrenBean> getChildren() {
                return children;
            }

            public void setChildren(List<ChildrenBean> children) {
                this.children = children;
            }
        }
    }
}
